package com.byzk.p2p.admin.money.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.byzk.p2p.admin.base.controller.AdminBaseController;
import com.byzk.p2p.admin.base.util.PageInfo;
import com.byzk.p2p.admin.money.service.BorrowPaymentDetailService;
import com.byzk.p2p.admin.money.vo.BorrowPaymentDetailVo;

/**
 * 借款人还款明细Controller
 * 
 * @author suker.zhou
 *
 */
@Controller
@RequestMapping("/admin/borrowPaymentDetail")
public class BorrowPaymentDetailController extends AdminBaseController {

	@Autowired
	private BorrowPaymentDetailService borrowPaymentDetailService;

	/**
	 * 借款人还款明细记录
	 * 
	 * @param model
	 * @param fundRecord
	 * @param index
	 * @param limit
	 * @param status
	 * @return
	 */
	@RequestMapping("/list")
	public String listBorrowPaymentDetail(Model model, @ModelAttribute BorrowPaymentDetailVo vo) {
		PageInfo<BorrowPaymentDetailVo> pageInfo = borrowPaymentDetailService.list(vo);
		model.addAttribute("pageInfo", pageInfo);
		model.addAttribute("paymentId",vo.getPaymentId());
		return ftl(Thread.currentThread().getStackTrace());
	}

}
